package com.yf.ability.upload.providers.oss.service;

import com.aliyuncs.exceptions.ClientException;
import com.yf.ability.upload.providers.oss.dto.OssTokenDTO;
/**
 * OSS云文档转换
 * @author bool
 */
public interface OssService {

    /**
     * 转换文档
     * @param input
     * @return
     * @throws ClientException
     */
    String convertDoc(String input) throws ClientException;

    /**
     * 转换视频
     * @param input
     * @return
     */
    String convertVideo(String input);

    /**
     * 上传文件
     * @param localFile
     * @return
     */
    String upload(String localFile);

    /**
     * 获取临时授权token
     * @return
     */
    OssTokenDTO token();
}
